import java.io.FileInputStream;
import java.util.HashSet;
import java.util.Vector;

public class Doer {
    public static void main(String[] args) {
        //hashSet方式去重
        System.out.println();
        int[] a = new int[]{10, 7, 8, 7, 8, 9, 10};
        HashSet<Integer> hashSet = new HashSet<>();
        for (int i = 0;i  < a.length;i++){
            hashSet.add(a[i]);
        }for (Integer integer:hashSet){
            System.out.println(integer + ",");
        }

    }
}